<?php
if(strtolower($_POST['vcode'])!=strtolower($_SESSION['vcode'])){ //验证码不区分大小写
	skip('register.php','error','验证码输入错误!');exit();
}
$_POST=escape($link,$_POST);//转义
$query="select * from user where name='{$_POST['name']}'";
$result=execute($link,$query);
if(mysqli_num_rows($result)){
	skip('register.php','error','这个用户名已经被别人注册了!');exit();
}
?>